import request from '@/utils/request'
// 能源类型
export const getEnergyTypeApi = () =>
  request.get('/core/dictionary/combo-item/list?dictType=EquipEnergyType')

// 分页数据
export const getTableListApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/price/template/page', { params })

// 电价方案
export const getElecProgrammeApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/price/template/getElecProgramme', { params })

// 非电价方案
export const getNotElecProgrammeApi = (params) =>
  request.get('/ecm-microservice-biz/ecm/price/template/getNotElecProgramme', { params })

// 新增价格方案
export const addTemplateApi = (data) =>
  request.post('/ecm-microservice-biz/ecm/price/template/add', data)

// 修改价格方案
export const editTemplateApi = (data) =>
  request.post('/ecm-microservice-biz/ecm/price/template/update', data)

// 删除价格方案
export const delTemplateApi = (id) =>
  request.post(`/ecm-microservice-biz/ecm/price/template/delete?id=${id}`)
